using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Domain.Car;

/// <summary>
/// 活动表
/// </summary>
[SugarTable("cars_activity")]
public class CarsActivity:Entity
{
    /// <summary>
    /// 活动名称
    /// </summary>
    [Required]
    [StringLength(255)]
    public string Title { get; set; }

    /// <summary>
    /// 开始时间
    /// </summary>
    [Required]
    public DateTime StarTime { get; set; }

    /// <summary>
    /// 结束时间
    /// </summary>
    [Required]
    public DateTime EndTime { get; set; }

    /// <summary>
    /// 活动简介
    /// </summary>
    public string Summary { get; set; }

    /// <summary>
    /// 活动内容
    /// </summary>
    public string Content { get; set; }

    /// <summary>
    /// 状态
    /// </summary>
    [Required]
    public bool Status { get; set; } = true;

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string UpdateUser { get; set; }


}